/* eslint-disable */
import mockjs from 'mockjs';

export default {
  'POST /api/account/login': (req, res) => {
    res.send(
      mockjs.mock(
        {
          "ret": 0,
          "data": {
              "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVjZGU1ZjA3NzZlMWYxNzNjMDU0YmJjNiIsIm5pY2tOYW1lIjoiYm9iYnkiLCJtb2JpbGUiOiIxNTE5ODA0OTY3NyIsImlzVmlzaXRvciI6ZmFsc2UsImxvZ2luQ2hhbm5lbCI6IiIsImV4cCI6MTYyNzg5OTgwOX0.P0fCPNxieBbiUAQ-vmRM_l5JFnD303orIKY9F4dNyb4",
              "expiredStamp": 1627899809
          },
          "error": null
        }
      ),
    );
  },
  'POST /api/account/status': (req, res) => {

    res.send(
      mockjs.mock(
        {
          "ret": 0,
          "data": {
              "accountBasic": {
                  "id": "5cde5f0776e1f173c054bbc6",
                  "roleId": "5c24a10f6ef5d7d35654e9c6",
                  "phone": "15198049677",
                  "account": "Developer",
                  "name": "开发者账号",
                  "avatar": 'https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png',
                  "perms": [],
                  "role_info": null,
                  "disabled": false,
                  "address": {
                      "province": "",
                      "city": "",
                      "district": ""
                  },
                  "lastLoginTime": 0,
                  "createTime": 0,
                  "updateTime": 0,
                  "tenants": null,
                  "currentTenant": ""
              },
              "address": {
                  "pro": "",
                  "city": "",
                  "cityCode": "0",
                  "proCode": "999999"
              },
              "type": 7,
              "version": {
                  "version": "",
                  "read": false
              }
          },
          "error": null
        }
      ),
    );
  },
};